﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />

<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>系统日志</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 清除缓存 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20 pt-5">
    <div class="cl pd-5 bg-1 bk-gray mb-20"> 

        <a href="javascript:;" class="btn btn-warning l mr-10 mt-5 radius clearcookies" data-type="cache"><i class="Hui-iconfont">&#xe6de;</i> 模板缓存</a> 
        <a href="javascript:;" class="btn btn-success l mr-10 mt-5 radius clearcookies" data-type="data"><i class="Hui-iconfont">&#xe603;</i> 数据缓存</a> 
        <a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius clearcookies" data-type="log"><i class="Hui-iconfont">&#xe6e2;</i> 日志缓存</a> 
        <a href="javascript:;" class="btn btn-primary radius mt-5 l mr-10 clearcookies" data-type="tmp"><i class="Hui-iconfont">&#xe600;</i> 临时缓存</a>
        
        <span class="r pt-10" id="page"></span>
        <span class="r mr-10" id="dataall" style="line-height: 50px;"></span>  
    </div>

    <table class="table table-border table-bordered table-bg">
        <thead>

            <tr class="text-c sort0">
                <!-- <th width="25" class="valueid"><input type="checkbox" name="" value=""></th> -->
                <th width="40">ID</th>
                <th >清除内容</th>
                
            </tr>
        </thead>
        <tbody id="content_sp">
            
        </tbody>
    </table>

    

</div>
<!-- 模板列表 -->
<script id="test" type="text/html">
<% for (x in list) { %>
<tr>
    <!-- <td class="valueid"><input type="checkbox" value="<%=x%>" name=""></td> -->
    <td><%=x%></td>
    <td><%=list[x]%></td>
</tr>
<% } %>
</script>   
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script>
<script type="text/javascript" src="lib/laypage/laypage.js"></script> 
<script src="/Manage/js/lazyload.min.js"></script>
<script type="text/javascript">
$(document).on('click','a.clearcookies',function(){
    var type=$(this).data("type");
    var url=API_CLEARCOOKIES+'?type='+type;
    loaddata(url,1,false,false);
    // $.getJSON(url, function(data){
    //     if(!checkStatus(data)) return;
    //     if(data.datas==''){
    //         document.getElementById('content_sp').innerHTML='<tr class="text-c"><td colspan="20">暂无缓存</td></tr>';
    //     }else{
    //         var data={'list':data.datas};
    //         var html=template('test',data);
    //         $("#content_sp").html(html);
    //     }
    // })
    
})

</script>
</body>
</html>